package com.itheima.mapper;

import com.itheima.pojo.CheckItem;
import com.itheima.pojo.Setmeal;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface SetmealMapper {

    boolean add(Setmeal setmeal);

    List<String> findAll();

    List<CheckItem> findByCode(String code, int offset, int pageSize);

    long countByCode(String code);

    List<CheckItem> findByName(String name, int offset, int pageSize);

    long countByName(String name);

    List<CheckItem> findPage(int offset, int pageSize);

    long count();

    Setmeal findById(Integer id);

    boolean update(Setmeal setmeal);
}
